package com.carsa.blackberry;

import java.util.Hashtable;

/**
 * @author Nahuel Barrios.
 * @since 19/07/2010.
 * @version 1.0
 */
public class CarsaApp {

    private static Hashtable         _memory        = new Hashtable();

    private static ThreadUI          th_ui          = new ThreadUI();
    private static ThreadPersistence th_persistence = new ThreadPersistence();

    public static void main(String[] args) {
	new Thread(th_persistence).start(); // Thread encargado de la persistencia
	new Thread(th_ui).start(); // Thread encargado de la interfaz de usuario.
    }

    public static ThreadUI getUIThread() {
	return th_ui;
    }

    public static ThreadPersistence getPersistenceThread() {
	return th_persistence;
    }

    public static Hashtable getMemory() {
	return _memory;
    }

}